<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en">
<!--<![endif]-->
<head>
<meta charset="utf-8" />
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
<link href="${ctx}/resources/css/bootstrap/css/bootstrap.css" rel="stylesheet" />
<link href="${ctx}/resources/css/bootstrap/css/metro.css" rel="stylesheet" />
<link href="${ctx}/resources/css/bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
<link href="${ctx}/resources/css/bootstrap/css/font-awesome.css" rel="stylesheet" />
<link href="${ctx}/resources/css/bootstrap/css/style.css" rel="stylesheet">
<link href="${ctx}/resources/css/bootstrap/css/style_responsive.css" rel="stylesheet">
<link href="${ctx}/resources/css/bootstrap/css/style_light.css" rel="stylesheet">
<link href="${ctx}/resources/css/bootstrap/css/style_light_inline.css" rel="stylesheet">
<style type="text/css">
@media ( max-width : 767px) {
	[class*="span"],.uneditable-input[class*="span"],.row-fluid [class*="span"]
		{
		width: 49%;
		float: left;
		margin-right: 7px;
	}
}
</style>
<title>欢迎</title>
</head>
<body>
	<div class="container-fluid">
		<div class="row-fluid">
		<form action="${ctx }/cashflow/settle.jhtml">
			${msg }
 			<div class="span7">
				银行名称：
					<select	name="bankId" class="span5 m-wrap" >
						<option value="0" >----请选择银行----</option>
					    <c:forEach var="bank" items="${banks }">
					    
							<option value="${bank.id }" <c:if test="${bank.id eq bankId }">selected="selected"</c:if>>${bank.bankName }</option>
						</c:forEach>
					</select>
 			</div>
 			<div class="span3">
 			
				<input type="submit" value="结算" class="btn blue" />
				<%-- <a href="${ctx }/cashflow/create.jhtml" class="btn red">新增</a> 
				<a href="${ctx }/bank/export.jhtml" class="btn green" >导出</a> --%>
			</div>
		</form>
		</div>
		<br>
		<%-- <div class="row-fluid">
			<table class="table" id="excel">
				<thead>
					<tr>
						<td>ID</td>
						<td>日期</td>
						<td>摘要</td>
						<td>借方金额</td>
						<td>贷方金额</td>
						<td>账户余额</td>
						<td>备注</td>
					</tr>
				</thead>
				<tbody>
				<c:forEach items="${cf }" var="cf">
					<tr>
						<td>${cf.id }</td>
						<td>${cf.inDate }</td>
						<td>${cf.summary }</td>
						<td><c:if test="${cf.debit != 0 }">${cf.debit }</c:if> </td>
						<td><c:if test="${cf.creditor != 0 }">${cf.creditor }</c:if> </td>
						<td><c:if test="${cf.settle != 0 }">${cf.settle }</c:if></td>
						<td>${cf.remarks }</td>
					</tr>
				</c:forEach>
				</tbody>
				<tfoot>
					<tr>
						<td colspan="4" style="text-align:right;color:blue;font-weight:bold;">合计：</td>
						<td colspan="2" style="font-weight: bold;">${sum }</td>
					</tr>
				</tfoot>
			</table>
		</div> --%>

	</div>
</body>
<script type="text/javascript" src="${ctx }/resources/js/jquery.js"></script>
<script type="text/javascript">
	var forword = function(obj) {
		if (obj == 1) {
			var $a = $(window.parent.document)
					.find(
							".page-sidebar > ul > li > ul > li > a[href$='applyArticle']");
			$a.get(0).click();
			var str = $a.parent().parent().parent().find("a").find("span")
					.text();
			text(str);
		} else if (obj == 2) {
			var $a = $(window.parent.document).find(
					".page-sidebar > ul > li > ul > li > a[href$='exp']");
			$a.get(0).click();
			var str = $a.parent().parent().parent().find("a").find("span")
					.text();
			text(str);
		} else if (obj == 3) {
			var $a = $(window.parent.document)
					.find(
							".page-sidebar > ul > li > ul > li > a[href$='managetSubject']");
			$a.get(0).click();
			var str = $a.parent().parent().parent().find("a").find("span")
					.text();
			text(str);
		} else if (obj == 4) {
			var $a = $(window.parent.document)
					.find(
							".page-sidebar > ul > li > ul > li > a[href$='articleRecycle']");
			$a.get(0).click();
			var str = $a.parent().parent().parent().find("a").find("span")
					.text();
			text(str);
		}
	}
	var text = function(obj) {
		$(window.parent.document).find(".page-sidebar > ul > li").removeClass(
				'active');
		$(window.parent.document).find(
				".page-sidebar > ul > li > a > span[class='title']").each(
				function(i) {
					var text = $(this).text();
					if (text == obj) {
						$(this).parent().parent().addClass('open active');
						$(this).after('<span class="selected"></span>')
					}
				});
	}
</script>
</html>